package org.simpatia;

import javax.ws.rs.*;
import java.util.Map;

@Path("/")
public interface SimpatiaService {
    @GET
    @Path("/stop")
    void destroy();

    @POST
    @Consumes("application/json")
    @Path("/reconfigure")
    void reconfigure(String jsonConfiguration);

    @GET
    @Produces("application/json")
    @Path("/list-services")
    Map<String, ServiceDescription> listServices();

    @POST
    @Consumes("application/json")
    @Path("/create")
    void createService(ServiceConfiguration configuration);

    @GET
    @Path("/destroy/{serviceName}")
    void destroyService(@PathParam("serviceName") String serviceName);
}
